﻿using System;
using System.Diagnostics;

namespace ReportWizard.Helpers
{
    public class ProcessManager
    {
        public static void ExitOnError(Exception ex)
        {
            Logger.WriteLog(ex);
            Process.GetCurrentProcess().Kill();
        }

        public static void ExitOnError(string errorMessage)
        {
            Logger.WriteLog(errorMessage);
            Process.GetCurrentProcess().Kill();
        }
    }
}
